package com.ywl.exercise.controller.web;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;



import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.ywl.exercise.entity.GameEntity;
import com.ywl.exercise.service.GameService;


@Controller
public class TestController {
	@Resource
	private GameService gameServiceImpl;
	
	@RequestMapping(value = "/test.do", method = RequestMethod.GET)
	public void test(HttpServletRequest request, HttpServletResponse response) {
		GameEntity entity = new GameEntity();
		entity.setLoginid("123@163.com");
		entity.setScores(1000);
		System.out.println("id值: "+gameServiceImpl.saveGame(entity));
	}
}
